<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .input{
            width: 300px;
            height: 20px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<form action="<%=request.getContextPath()%>/user/addUser" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td><input type="text" name="telephone" placeholder="请输入手机号" class="input"></td>
        </tr>
        <tr>
            <td><input type="text" name="password" placeholder="请输入密码" class="input"></td>
        </tr>
        <tr>
            <td><input type="text" name="realname" placeholder="请输入姓名" class="input"></td>
        </tr>
        <tr>
            <td><input type="date" name="birthday" placeholder="请输入生日" class="input"></td>
        </tr>
        <tr>
            <td><input type="file" name="file" placeholder="请输入头像" class="input"></td>
        </tr>
        <tr>
            <td><input type="radio" name="available" value="1" checked>启用
                <input type="radio" name="available" value="0">禁用</td>
        </tr>
        <tr>
            <td>
                <select name="dept.id" class="input">
                    <c:forEach var="dept" items="${deptList}">
                        <option value="${dept.id}">${dept.dname}</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="提交">
                <input type="reset" value="重置">
            </td>
        </tr>
    </table>
</form>
</body>
</html>